package ClassifierTraining;

import com.aliasi.util.Pair;

public class ComparablePair<T1, T2> extends Pair<Integer, Integer> implements Comparable<Pair<Integer, Integer>>{
	public ComparablePair(Integer a, Integer b) {
		super(a, b);
	}

	public int compareTo(Pair<Integer, Integer> o) {
		if (this.a() < o.a()){
			return -1;
		}
		if (this.a() > o.a()){
			return 1;
		}
		if (this.b() < o.b()){
			return -1;
		}
		if (this.b() > o.b()){
			return 1;
		}
		return 0;
	}

}
